package diseaseandcureadministration.cure;

import diseaseandcureadministration.Patient;

/**
 * InjectedCure is an concrete Cure
 * 
 * @author Peter Tolstrup Aagesen, ptaa@itu.dk
 *
 */
public class InjectedCure extends Cure{
	
	public InjectedCure(String name, int healFactor)
	{
		//Construct super and set variables
		super();
		setName(name);
		setHealFactor(healFactor);
	}

	@Override
	public void administer(Patient patient) 
	{
		inject(patient);		
	}
	
	/**
	 * inject is a helper method for the administer
	 * implementation
	 * @param patient
	 */
	private void inject(Patient patient)
	{
		patient.heal(getHealFactor());
	}

}
